<!DOCTYPE html>
<html class="loginHtml" xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:th="http://www.thymeleaf.org"
	  xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
<head>
	<meta charset="utf-8">
	<title>用户中心登录</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="icon" th:href="@{/favicon.ico}">
	<link rel="stylesheet" th:href="@{/js/layui/css/layui.css}" media="all" />
	<link rel="stylesheet" th:href="@{/css/public.css}" media="all" />
</head>
<body class="loginBody">
	<form class="layui-form" th:action="@{/login}" method="post" ><!--th:action="@{/login}" method="post"-->
		<div class="login_face"><img th:src="@{/images/face.jpg}" class="userAvatar"></div>
		<div class="layui-form-item input-item">
			<label for="username">用户名</label>
			<input type="text" placeholder="请输入用户名" autocomplete="off" id="username" name="username" value="wws" class="layui-input" lay-verify="required">
		</div>
		<div class="layui-form-item input-item">
			<label for="password">密码</label>
			<input type="password" placeholder="请输入密码" autocomplete="off" id="password" name="password" value="666666" class="layui-input" lay-verify="required">
		</div>
		<div class="layui-form-item input-item" id="imgCode">
			<label for="validateCode">验证码</label>
			<input type="text" placeholder="请输入验证码" autocomplete="off" id="validateCode" name="validateCode" class="layui-input" lay-verify="required">
			<img id="chche" th:src="@{/getCaptcha}">
		</div>
		<div class="layui-form-item " style="float:right;height: 10px;margin-top: -15px;margin-bottom: 25px;" >
			<input type="checkbox" name="remember-me" title="记住我" lay-skin="primary"/>
		</div>
		<div class="layui-form-item">
			<button class="layui-btn layui-block" lay-filter="login" id="login" lay-submit>登录</button>
		</div>

		<!--<div class="layui-form-item layui-row">
			<a href="javascript:;" class="seraph icon-qq layui-col-xs4 layui-col-sm4 layui-col-md4 layui-col-lg4"></a>
			<a href="javascript:;" class="seraph icon-wechat layui-col-xs4 layui-col-sm4 layui-col-md4 layui-col-lg4"></a>
			<a href="javascript:;" class="seraph icon-sina layui-col-xs4 layui-col-sm4 layui-col-md4 layui-col-lg4"></a>
		</div>-->
	</form>
	<div th:if="${param.error != null}">
		<p style="color: red">
			Invalid username and password.
		</p>
	</div>
	<div th:if="${param.logout != null}">
		<p style="color: green">
			You have been logged out.
		</p>
	</div>
	<script type="text/javascript" th:src="@{/js/layui/layui.js}"></script>
	<script type="text/javascript" th:src="@{/js/login.js}"></script>
	<script type="text/javascript" th:src="@{/js/cache.js}"></script>
	<script th:src="@{/js/jquery-1.7.2.min.js}"></script>
</body>
</html>